package com.nightsoul.nutz.test.dao;

import javax.sql.DataSource;

import org.nutz.dao.impl.NutDao;
import org.nutz.ioc.loader.annotation.IocBean;

import com.nightsoul.nutz.test.pojo.Person;

@IocBean(args={"refer:dataSource"}, singleton=true)
public class PersonDao extends NutDao {

	public PersonDao(DataSource dataSource) {
		super(dataSource);
	}
	
	
	public void save(Person person) {
		this.insert(person);
	}
}
